﻿using System;
using LiteDB;

namespace AutoR.Models
{
	// Token: 0x02000200 RID: 512
	public class StatDealNode
	{
		// Token: 0x17000363 RID: 867
		// (get) Token: 0x06000B6F RID: 2927 RVA: 0x0006D3D2 File Offset: 0x0006B5D2
		// (set) Token: 0x06000B70 RID: 2928 RVA: 0x0006D3DA File Offset: 0x0006B5DA
		public ObjectId Id { get; set; } = ObjectId.NewObjectId();

		// Token: 0x17000364 RID: 868
		// (get) Token: 0x06000B71 RID: 2929 RVA: 0x0006D3E3 File Offset: 0x0006B5E3
		// (set) Token: 0x06000B72 RID: 2930 RVA: 0x0006D3EB File Offset: 0x0006B5EB
		public int shipid { get; set; }

		// Token: 0x17000365 RID: 869
		// (get) Token: 0x06000B73 RID: 2931 RVA: 0x0006D3F4 File Offset: 0x0006B5F4
		// (set) Token: 0x06000B74 RID: 2932 RVA: 0x0006D3FC File Offset: 0x0006B5FC
		public string title { get; set; }

		// Token: 0x17000366 RID: 870
		// (get) Token: 0x06000B75 RID: 2933 RVA: 0x0006D405 File Offset: 0x0006B605
		// (set) Token: 0x06000B76 RID: 2934 RVA: 0x0006D40D File Offset: 0x0006B60D
		public int Node { get; set; }

		// Token: 0x17000367 RID: 871
		// (get) Token: 0x06000B77 RID: 2935 RVA: 0x0006D416 File Offset: 0x0006B616
		// (set) Token: 0x06000B78 RID: 2936 RVA: 0x0006D41E File Offset: 0x0006B61E
		public float AttackDamge { get; set; }

		// Token: 0x17000368 RID: 872
		// (get) Token: 0x06000B79 RID: 2937 RVA: 0x0006D427 File Offset: 0x0006B627
		// (set) Token: 0x06000B7A RID: 2938 RVA: 0x0006D42F File Offset: 0x0006B62F
		public int AttackNum { get; set; }

		// Token: 0x17000369 RID: 873
		// (get) Token: 0x06000B7B RID: 2939 RVA: 0x0006D438 File Offset: 0x0006B638
		// (set) Token: 0x06000B7C RID: 2940 RVA: 0x0006D440 File Offset: 0x0006B640
		public int AttackMiss { get; set; }

		// Token: 0x1700036A RID: 874
		// (get) Token: 0x06000B7D RID: 2941 RVA: 0x0006D449 File Offset: 0x0006B649
		// (set) Token: 0x06000B7E RID: 2942 RVA: 0x0006D451 File Offset: 0x0006B651
		public double? AttackAverage { get; set; }

		// Token: 0x1700036B RID: 875
		// (get) Token: 0x06000B7F RID: 2943 RVA: 0x0006D45A File Offset: 0x0006B65A
		[BsonIgnore]
		public float AttackHitRate
		{
			get
			{
				return (float)(this.AttackNum - this.AttackMiss) / (float)this.AttackNum;
			}
		}

		// Token: 0x1700036C RID: 876
		// (get) Token: 0x06000B80 RID: 2944 RVA: 0x0006D472 File Offset: 0x0006B672
		// (set) Token: 0x06000B81 RID: 2945 RVA: 0x0006D47A File Offset: 0x0006B67A
		public int BeAttackNum { get; set; }

		// Token: 0x1700036D RID: 877
		// (get) Token: 0x06000B82 RID: 2946 RVA: 0x0006D483 File Offset: 0x0006B683
		// (set) Token: 0x06000B83 RID: 2947 RVA: 0x0006D48B File Offset: 0x0006B68B
		public float BeAttackDamge { get; set; }

		// Token: 0x1700036E RID: 878
		// (get) Token: 0x06000B84 RID: 2948 RVA: 0x0006D494 File Offset: 0x0006B694
		// (set) Token: 0x06000B85 RID: 2949 RVA: 0x0006D49C File Offset: 0x0006B69C
		public int Dodge { get; set; }

		// Token: 0x1700036F RID: 879
		// (get) Token: 0x06000B86 RID: 2950 RVA: 0x0006D4A5 File Offset: 0x0006B6A5
		[BsonIgnore]
		public float DodgeRate
		{
			get
			{
				return (float)this.AttackMiss / (float)this.AttackNum;
			}
		}
	}
}
